package com.example.demo.mapper;

import com.example.demo.dto.EmployeeDTO;
import com.example.demo.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author honeypeach
 * @date 2023/3/24 13:59
 */
@Repository
@Mapper
public interface EmployeeRepository {
     Employee selectById(Long id);

     Employee getEmployeeWithLeader(EmployeeDTO employeeDTO);

     List<Employee> getEmployeeList(EmployeeDTO employeeDTO);

     //int insert(Employee employee);

     int deleteById(Long id);

    /* int updateEmployee(Employee employee);*/

     int insertEmployee(Employee employee);



}
